<?php
/**************************************************************************
 * Naanal PHP Framework, Simple, Efficient and Developer Friendly
 * Ver 3.0, Copyright (C) <2010>  <Tamil Amuthan. R>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ************************************************************************/
?>
<div>
<script type="text/javascript" src="fetchcomps.js"></script>
<script type="text/javascript">
$(function() {
    $("#tracking").validate({
        errorPlacement: function(error, element) {
        jQuery(element).css("border-color", "red");
        }
    });
});
</script>
<form id="tracking" action="index.php" method="post" enctype="multipart/form-data">
    <input type="hidden" name="<?php echo $url_module_param; ?>" value="tracking" />
    <input type="hidden" name="<?php echo $url_action_param; ?>" value="list" />
<table>
<tr>
<td>
User
</td>
<td colspan="3"><?php echo $user; ?></td></tr>
<tr><td> From Date</td>
    <td><?php 
    ClsNaanalLibrary::getInstance("jui");
    $picker=UiWidget::getWidget('datepicker'); 
    $picker->setAttribute("name", "fromdate");
    $picker->validate();
    echo $picker;
    ?></td>
    <td>To Date</td>
<td><?php 
    $picker=UiWidget::getWidget('datepicker'); 
    $picker->setAttribute("name", "todate");
    $picker->validate();
    echo $picker;
    ?></td></tr>
<tr><td colspan="4"><center><input type="submit" value="Submit" /></center></td></tr>
</table>

</form>
</div>